﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Kokomo.PeInspector.Profiler;
using System.Diagnostics;

namespace Kokomo.PeInspector.Test
{
	[TestClass]
	public class ProfilerTest
	{
		[TestMethod]
		public void TestMethod1()
		{
			ProcessStartInfo processStartInfo = new ProcessStartInfo(
				@"C:\oss\Kokomo\AssemblyAnalyzer\bin\Debug\AssemblyAnalyzer.exe",
				"-t"
				);

			Kokomo.PeInspector.Profiler.Profiler profiler = new Profiler.Profiler(processStartInfo);
			while (true) ;

			//ProfilerMonitor monitor = new ProfilerMonitor();
			//monitor.Register();

			//System.Environment.SetEnvironmentVariable(
			//    "KOKOMO_PROFILER_MONITOR_GUID",
			//    "{" + monitor.InstanceID.ToString() + "}"
			//    );
			//ICorProfilerCallback profilerCallback = new CorProfilerCallbackClass();

		}
	}
}
